import {
    createRouter,
    createWebHashHistory
} from 'vue-router'

import Index from '~/pages/index.vue'
import Login from '~/pages/login.vue'
import NotFound from '~/pages/404.vue'
import Black from '~/pages/black.vue'

const routes = [{
    path: "/",
    name: 'index',
    component: Index
},{
    path: "/login",
    component: Login
},{
    path: '/:pathMatch(.*)*',
    component: NotFound,
    name: 'NotFound'
},{
    path: '/black',
    name: 'black',
    component: Black
}]

const router = createRouter({
    history: createWebHashHistory(),
    routes
})

export default router